package model;

/**
 * Created by yvdedu.com on 2016/9/22.
 */
public class User {
    private int id;
    private String name;
    private String pwd;
    private String time;
    private String last_time;
    private int exp;
    private int gold;
    private String icon;
    private String nickname;
    private String sex;
    private int age;
    private String phone;

    public User(int id, String name, String pwd, String time, String last_time, int exp, int gold, String icon, String nickname, String sex, int age, String phone) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.time = time;
        this.last_time = last_time;
        this.exp = exp;
        this.gold = gold;
        this.icon = icon;
        this.nickname = nickname;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPwd() {
        return pwd;
    }

    public String getTime() {
        return time;
    }

    public String getLast_time() {
        return last_time;
    }

    public int getExp() {
        return exp;
    }

    public int getGold() {
        return gold;
    }

    public String getIcon() {
        return icon;
    }

    public String getNickname() {
        return nickname;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public String getPhone() {
        return phone;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setLast_time(String last_time) {
        this.last_time = last_time;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", time='" + time + '\'' +
                ", last_time='" + last_time + '\'' +
                ", exp=" + exp +
                ", gold=" + gold +
                ", icon='" + icon + '\'' +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                '}';
    }
}
